package dao

import "sweeter.star/go-demo/model"

type Resource struct {
	Nickame string `json:"nickame"`
	Telephone string `json:"telephone"`
}

func User(user model.User) Resource  {
	return Resource{
		Nickame: user.Nickname,
		Telephone: user.Telephone,
	}
}